@import "~ui/styles/variables.less";

.suggestions {
  background-color: @body-bg;
  color: @text-color;
  border: 1px solid @input-border;
  border-top: 2px solid @input-border;
  border-radius: 0px 0px @border-radius-base @border-radius-base !important;
  z-index: 10000;
  max-height: 378px; // 5 suggestions
  overflow-y: auto;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.25);

  .suggestion {
    border-bottom: 1px solid @gray-lighter;
    padding: 5px 20px;

    &:hover {
      background-color: @gray-lighter;
    }

    &.active {
      background-color: @gray-lighter;
    }
  }

  .suggestion-details {
    background-color: @body-bg;
    padding: 10px;
    border-radius: @border-radius-base;

    > table {
      color: @text-color;
      margin-bottom: 0px;
    }
  }

  &.suggestions-isPopover {
    position: absolute;
    top: 100%;
  }
}
